package cn.zw.design.decorator;

public class Customer {
	public static void main(String[] args) {
		
		Beverage beverage = new Espresso();
		beverage.cost();
		System.out.println(beverage.getPrice());
		
		Mocha mocha = new Mocha(beverage);
		mocha.cost();
		System.out.println(beverage.getPrice());
		
		Mocha mocha2 = new Mocha(beverage);
		mocha2.cost();
		System.out.println(beverage.getPrice());
		
		Soy soy = new Soy(beverage);
		soy.cost();
		System.out.println(beverage.getPrice());
		
		System.out.println("-------------------------------");
		System.out.println(beverage.getCondis().toString());
		
		
	}

}
